<?php
/**
 * http://collect2.longsunhd.com/collect?s_url=http%3A%2F%2Fitem.taobao.com%2Fitem.htm%3Fspm%3D2013.1.w4018-9416753201.21.UEasNu%26scm%3D1007.172.0.i42020766389%26id%3D42393028228%26ad_id%3D%26pvid%3D031c09b7-83f2-4c07-92ac-d753916f7aff%26jlogid%3Dp1517353318641%26XDEBUG_SESSION_START%3D15730
 * Created by PhpStorm.
 * User: admin
 * Date: 2015/4/10
 * Time: 14:50
 * B c:/php526/php.exe d:/collect_new/zqnews_api.php http://www.gxnews.com.cn/staticpages/20150409/newgx552637f3-12559674.shtml d:/temp/httpwww.gxnews.com.cnstaticpages20150409newgx552637f3-12559674.shtml
 * http://collect2.longsunhd.com/zqnews_api.php?url=http://www.gxnews.com.cn/staticpages/20150409/newgx552637f3-12559674.shtml
 */
include_once("collect/Lib/ORG/Zqnews.class.php");
$url=($url)?$url:"http://news.gxnews.com.cn/staticpages/20150410/newgx552700a4-12562577.shtml";
$pagehtml=@file_get_contents("d:/temp/".substr(preg_replace("/\/|\:|\?|\=|\&|\-|%|\;/","",$url),0,200));
$news = new Zqnews($url, $pagehtml);
$pageinfo=$news->getdata();
echo json_encode($pageinfo);

